<?php
require_once BACKGROUND_COMMON_ACTION_SERVICE_DIR . '/default.php';

class background_good_category_index_action_service extends background_default_common_action_service
{
    protected static $_instance;

    public static function get_instance()
    {
        if (null === self::$_instance) {
            self::$_instance = new self();
        }

        return self::$_instance;
    }


    protected function _current_page_process()
    {                	         
        $model_background_good_category = wwy_resource_container::get_model_background_good_category();
        
        $parent_id = 0;
        $where = array();
        $order = array('`order` asc');
        $level = 1;
        $all_category_list = $model_background_good_category->get_children_list($parent_id, $level, $where, $order);
        
        self::add_view_data('all_category_list', $all_category_list);
    }
}